<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox-content">
                <div class="row">
                    <form action="<?=url('member.member/settype',['member_id'=>$member->member_id])?>" id="form-create" method="post" class="form-horizontal" role="form">
                        <div class="form-group">
                            <label class="col-sm-3 control-label no-padding-right"><span
                                    class="c-red">*</span>用户：</label>
                            <div class="col-sm-2">
                                      <?=$member->nick_name?>
                            </div>
                            <div class="col-sm-2">
                                 手机：
                            </div>
                            <div class="col-sm-2">
                                <?=$member->mobile?>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label no-padding-right"><span
                                    class="c-red">*</span>等级：</label>
                            <div class="col-sm-9">
                                <select class="form-control" name="type">
                                    <option value="0">普通商户</option>
                                    <?php foreach($agent as $key=>$val) { ?>
                                    <option  <?=$key == $member->type ? 'selected' : '' ?> value="<?=$key?>"><?=$val['name']?></option>
                                    <?php } ?>
                                </select>
                            </div>
                        </div>
                        <div class="clearfix form-actions">
                            <div class="col-md-offset-3 col-md-9">
                                <button mini="submit" for="form-create" class="btn btn-info" type="button">
                                    <i class="ace-icon fa fa-check bigger-110"></i>
                                    确定设置
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>